<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%settings}}".
 *
 * @property int $setId 设置编号
 * @property string $setName 设置名称
 * @property string $setTag 设置标识
 * @property string $setValue 设置内容
 * @property string $description 设置说明
 * @property int $ctime 创建时间
 */
class Settings extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%settings}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['setValue', 'description'], 'string'],
            [['ctime'], 'integer'],
            [['setName'], 'string', 'max' => 200],
            [['setTag'], 'string', 'max' => 100],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'setId' => Yii::t('app', 'Set ID'),
            'setName' => Yii::t('app', 'Set Name'),
            'setTag' => Yii::t('app', 'Set Tag'),
            'setValue' => Yii::t('app', 'Set Value'),
            'description' => Yii::t('app', 'Description'),
            'ctime' => Yii::t('app', 'Ctime'),
        ];
    }
}
